
Page({
  onShareAppMessage() {
    return {
      title: 'swiper',
      path: 'page/component/pages/swiper/swiper'
    }
  },

  data: {
    itemList: [], //人防动态列表数据
    menuImg: [//菜单图片
      {
        img: '/img/resources.png',
        text: '服务日历',
        url: "/pages/homepage/service_calendar/index"
      },
      {
        img: '/img/fortifications.png',
        text: '人防工事',
        url: "/pages/homepage/fortifications/index"
      },
      {
        img: '/img/coach.png',
        text: '辅助报警',
        url: "/pages/homepage/auxiliary/index"
      },
    ],
    home_start: 0,//起始记录行数
    // background: [
    //  'img1','img2','img3'
    //  ],
    background: [
     {
       img:'/img/download.png'
     },
     {
      img:'/img/download.png'
     },
    {
      img:'/img/download.png'
    }
    ],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500
  },

  changeIndicatorDots() {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },

  changeAutoplay() {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },

  intervalChange(e) {
    this.setData({
      interval: e.detail.value
    })
  },

  durationChange(e) {
    this.setData({
      duration: e.detail.value
    })
  }
})
